package com.itheima.App;

import com.itheima.Dao.UserDao;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class UserFactoryBeanTest {
    public static void main(String[] args) {
        ApplicationContext ca = new ClassPathXmlApplicationContext("applicationContext.xml");
        UserDao userfactorybean = (UserDao) ca.getBean("Userfactorybean");
        userfactorybean.user();

    }
}
